import request from '@/utils/request'

// 查询注册表与用户的关联列表
export function listUserprojcet(query) {
  return request({
    url: '/system/userprojcet/list',
    method: 'get',
    params: query
  })
}

// 查询注册表与用户的关联详细
export function getUserprojcet(id) {
  return request({
    url: '/system/userprojcet/' + id,
    method: 'get'
  })
}

// 新增注册表与用户的关联
export function addUserprojcet(data) {
  return request({
    url: '/system/userprojcet',
    method: 'post',
    data: data
  })
}

// 修改注册表与用户的关联
export function updateUserprojcet(data) {
  return request({
    url: '/system/userprojcet',
    method: 'put',
    data: data
  })
}

// 删除注册表与用户的关联
export function delUserprojcet(id) {
  return request({
    url: '/system/userprojcet/' + id,
    method: 'delete'
  })
}
